package com.ny.service.impl;

import com.ny.dao.ManagerDao;
import com.ny.dao.impl.ManagerDaoImpl;
import com.ny.entity.Manager;
import com.ny.service.ManagerService;

import java.sql.SQLException;

public class ManagerServiceImpl  implements ManagerService {
    private ManagerDao managerDao = new ManagerDaoImpl();

    public ManagerServiceImpl() throws SQLException, ClassNotFoundException {
    }


    @Override
    public Manager login1(String managerName, String managerPassword) throws SQLException {
        return managerDao.login1(managerName,managerPassword);
    }
}
